package sdu.icat.forum.smodel;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.CreationTimestamp;

/**
 * 入队请求
 * @author ljh_2015
 *
 */
@Entity
@Table(name="group_request")
public class GroupRequest {

    @Id
    @GeneratedValue
    private Long id;
    
    @Column(nullable=false)
    private Long groupid;
    
    @Column(nullable=false)
    private Long userid;
    
    private String requestContext;
    
    @Temporal(TemporalType.TIMESTAMP)
    @CreationTimestamp
    private Date requestTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGroupid() {
        return groupid;
    }

    public void setGroupid(Long groupid) {
        this.groupid = groupid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getRequestContext() {
        return requestContext;
    }

    public void setRequestContext(String requestContext) {
        this.requestContext = requestContext;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }
    
}
